package com.jzo2o.foundations.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.foundations.model.domain.Serve;
import com.jzo2o.foundations.model.dto.request.ServePageQueryReqDTO;
import com.jzo2o.foundations.model.dto.request.ServeUpsertReqDTO;
import com.jzo2o.foundations.model.dto.response.ServeResDTO;

import java.math.BigDecimal;
import java.util.List;


/**
 * <p>
 * 服务表 服务类
 * </p>
 *
 * @author lmh
 * @since 2024-09-06
 */
public interface IServeService extends IService<Serve> {
    public PageResult<ServeResDTO> page(ServePageQueryReqDTO servePageQueryReqDTO);

    void batchInsert(List<ServeUpsertReqDTO> serveUpsertReqDTOList);

    /**
     * 区域服务管理价格修改
     * @param id 服务id
     * @param price 服务价格
     */
    void update(Long id, BigDecimal price);

    Serve onSale(Long id);

    void deleteById(Long id);

    Serve offSale(Long id);

    Serve onHot(Long id);

    Serve offHot(Long id);
}
